package jzqb.po;

import cnki.tpi.kbatis.annotation.Column;
import io.swagger.annotations.ApiModel;
import jzqb.vo.Field;
import lombok.Data;

import java.io.Serializable;


@Data
@ApiModel("九大资源标准信息")
public class StandardPo implements Serializable {
    @Column("题名")
    private String title;
    @Column("作者")
    private String author;
    @Column("机构")
    private String organization;
    @Column("关键词")
    private String keyword ;
    @Column("关键词")
    private String keyStr ;
    @Column("摘要")
    private String abstr;
    @Column("文献来源")
    private String resources;
    @Column("发表时间")
    private String releaseDate;
    @Column("年")
    private String year;
    @Column("语言")
    private String language;
    @Column("领域")
    private String area;
    @Column("TABLENAME")
    private String tableName;
    @Column("来源数据库")
    private String source;
    @Column("主题")
    private String theme;
    @Column("最近更新时间")
    private String lasterUpdateTime;
    @Column("数字对象更新时间")
    private String dynamicUpdateTime;
    @Column("资源拥有者")
    private String resourceHolder;
    @Column("唯一标识符")
    private String uniqueTyepe;
    @Column("下载频次")
    private String downloadTimes;
    @Column("浏览频次")
    private String BrowseFrequency;
    @Column("评论数量")
    private String CommentNumber;
    @Column("封面")
    private String coverPage;
    @Column("SYS_FLD_SYSID")//唯一标识符
    private Integer sysID;
    @Column("文件名")//唯一标识符
    private String fileName;
     @Column("SYS_FLD_DIGITFILENAME")//文件唯一标志符
    private String fileDistinct;
    @Column("SYS_VSM")//相似向量
    private String vsm;
    @Column("SYS_VSM_EN")//英文相似向量
    private String vsmen;


    //转换后台显示领域中文格式
    public String getField() {
        if(Field.ONE.getDbCode().equals(this.area)){
            return Field.ONE.getShowName();
        }
        else if(Field.TWO.getDbCode().equals(this.area)){
            return Field.TWO.getShowName();
        }
        else if(Field.THREE.getDbCode().equals(this.area)){
            return Field.THREE.getShowName();
        }
        else if(Field.FOUR.getDbCode().equals(this.area)){
            return Field.FOUR.getShowName();
        }
        else if(Field.FIVE.getDbCode().equals(this.area)){
            return Field.FIVE.getShowName();
        }
        else if(Field.SIX.getDbCode().equals(this.area)){
            return Field.SIX.getShowName();
        }
        else if(Field.SEVEN.getDbCode().equals(this.area)){
            return Field.SEVEN.getShowName();
        }
        else if(Field.EIGHT.getDbCode().equals(this.area)){
            return Field.EIGHT.getShowName();
        }else {
            return  Field.NINE.getDbCode();
        }
    }
}
